package com.woniu.orderservice.controller;

import com.woniu.orderservice.entity.Reasons;
import com.woniu.orderservice.service.ReasonsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("reasons")
public class ReasonsController {
    @Resource
    private ReasonsService reasonsService;

    @GetMapping("selectOne")
    public Reasons selectOne(Integer id) {
        return reasonsService.queryById(id);
    }

}